//
//  HLiveToolView.h
//  linktuIOS
//
//  Created by hejunsong on 17/1/11.
//  Copyright © 2017年 tianxie. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,  HLiveToolViewstyle) {
    HLiveToolViewstyleplayblack,
    HLiveToolViewstyleanchor,
    HLiveToolViewstylaudiences,
    HLiveToolViewstyleLink,
};

typedef NS_ENUM(NSInteger,  HLiveToolAnchorRequst) {
     HLiveToolAnchorRequstTypegift,
     HLiveToolAnchorRequstTypegood,
     HLiveToolAnchorRequstTypefollow,
};

typedef NS_ENUM(NSInteger,  HLiveToolAnchorSet) {
    HLiveToolAnchorsetTypeFlip,       //翻转摄像头
    HLiveToolAnchorsetTypeLight,     // 开闪关灯
    HLiveToolAnchorsetTypeBeauty,    // 美颜开关
};

@class HLiveToolView;

@protocol HLiveToolViewDelegate <NSObject>


-(void)hlivetoolViewsendMessage:(HLiveToolView *)livetoolview; //
-(void)hlivetoolViewMusic:(HLiveToolView *)livetoolview;
-(void)hlivetoolViewShare:(HLiveToolView *)livetoolview;
-(void)hlivetoolViewSendGift:(HLiveToolView *)livetoolview ;
-(void)hlivetoolViewFullScreen:(HLiveToolView *)livetoolview;


-(void)hlivetoolView:(HLiveToolView *)livetoolview replayplayorpause:(BOOL)isplay;

-(void)hlivetoolView:(HLiveToolView *)livetoolview anchorRequstType:(HLiveToolAnchorRequst)type;

-(void)hlivetoolView:(HLiveToolView *)livetoolview anchorSetType:(HLiveToolAnchorSet)type withOn:(BOOL)onoff;

-(void)hlivetoolViewLink:(HLiveToolView *)livetoolview;

-(void)hlivetoolViewAnchorLinkClick:(HLiveToolView *)livetoolview;

-(void)hlivetoolViewCloseLink:(HLiveToolView *)livetoolview;

-(void)hlivetoolViewShowAnchorSetView:(HLiveToolView *)livetoolview;


@end


@interface HLiveToolView : UIView


-(instancetype)initWithFrame:(CGRect)frame withStyle:(HLiveToolViewstyle)style;

@property(nonatomic,assign) HLiveToolViewstyle style;
@property(nonatomic,weak) id<HLiveToolViewDelegate> delegate;

@property(nonatomic,assign) BOOL isgameOrgift;

@property(nonatomic,assign) BOOL OpenLink;

@property(nonatomic,assign) BOOL allowLinkMc;

@property(nonatomic,assign) BOOL AnchorOpenLink;
@property(nonatomic,assign) BOOL HaveLinkApply;

@property(nonatomic,assign) BOOL isGameLive;

@end
